package com.yaodian100.ec.activity.service;

import java.util.List;

import com.yaodian100.core.common.exception.CoreException;
import com.yaodian100.core.common.service.DomainService;
import com.yaodian100.core.common.utils.ServerValue;
import com.yaodian100.ec.activity.entity.ActivityPageBlock;
import com.yaodian100.ec.activity.entity.ActivityPageBlockProduct;


public interface ActivityPageBlockService extends DomainService<ActivityPageBlock> {
	public static final String BANNER_IMAGE_PATH = ServerValue.getMidHtmlPath() + "system/act/pm/eventImages/banner";
	public static final String BANNER_IMAGE_WEB_PATH = "/act/pm/system/eventImages/banner";
	
	public void saveWithOrder(ActivityPageBlock block) throws CoreException;
	
	public void delBlockResetOrder(long id) throws CoreException;
	
	public boolean switchBlockSortOrder(long fromId,long toId) throws CoreException;
	
	public List<String> getValidShelfProducts(List<ActivityPageBlockProduct> products) throws CoreException;
	
	public ActivityPageBlock saveBlockBanners(ActivityPageBlock block) throws CoreException;
	
	public void updateBlockOrder(String[] blocks) throws CoreException;
	
}
